/*----------------------------------------------------------------------------*\
| /gamemode/goals.lua                  | goals system                    | SRV |
\*----------------------------------------------------------------------------*/

goals = {}
goals.status = {}
goals.status[0]=false

INGOALAREA    = false

HELP_GOALIN   = true
HELP_GOALOUT  = true

function GM:Think()
	if ( INGOALAREA and HELP_GOALIN ) then
		chat.Text( 0, ply, "You're in the goal area! Stay here until the end of the round to win!", 0, CHAT_HELP)
		HELP_GOALIN = false
	end
	
	if ( !INGOALAREA and !HELP_GOALIN and HELP_GOALOUT ) then
		chat.Text( 0, ply, "You've left the goal area! Be sure to return before the round time is up!", 0, CHAT_HELP )
		HELP_GOALOUT = false
	end
end 

function InGoal(state,ply)
	umsg.Start("InGoal", ply)
		umsg.Bool(state)
	umsg.End()
end